package com.vdong.trade.order.common.enums;

/**
 *
 */
public enum TypeEnum {

    WEEK("周榜", "1"),
    MONTH("月榜", "2"),
    ;

    private String state;
    private String value;

    private TypeEnum(String state, String value) {
        this.state = state;
        this.value = value;
    }

    public static TypeEnum getEnum(String value) {
        for (TypeEnum requisitionConstant : TypeEnum.values()) {
            if (requisitionConstant.getValue() == value) {
                return requisitionConstant;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }

    public String getState() {
        return state;
    }
}
